import * as React from 'react';
import {JavaBook} from "../compontens/Book/JavaBook";
import {WebBook} from "../compontens/Book/WebBook";
import {Outlet} from "react-router-dom"

export const Book = () => {
    return (
        <div>
            <h2>Book组件嵌套</h2>
            <Outlet/> {/*    v6  用Route嵌套的形式  */}
            {/*{this.props.children} /!*   v5的写法用switch标签   *!/*/}
        </div>
    );
};
